home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / misc / prnf246.zip / XXX.HDR < prev   
Text File  |  1993-05-01  |  7KB  |  116 lines

  1. This is a sample header file.  Normally, of course, you don't fill one
  2.    with extra blank lines and all manner of uninstructive commentary.  Nev-
  3.    ertheless, this is a working header file.  Change its name to PAGINA.HDR,
  4.    or just ask Pagina to use XXX.HDR, and the commands below will do their
  5.    job.  Try it and see.  It's all explained in the DOC.
  6.  
  7. {.H2C Printed: .Pt, .Pd} <- Time & Date of printout in center of 2nd line
  8.  
  9. {.H1L File name: .Fn}   {.H1R Written: .Ft on .Fd}   <-Note: 2 commands can
  10.     be on the same line.  Note also that the order of the commands need not
  11.     match the order of the lines.
  12.  
  13. {.H2L Copied Right .Id}    <--An ornament for line 2 of page 1.  If
  14.                               somewhere on the DOS path, you have a file
  15.                               called PXL.ID with your name (or whatever)
  16.                               in it, PAGINA will find it and put it here.
  17.  
  18. {.H2R Reg. Penna. Dept. Agr.}  <--another ornament.
  19.  
  20. Yet more ornaments for page 1 --->               {.H3L Ms. Patricia Pending}
  21. (Note they can be anywhere in the line)       {.H3R Not kosher for Passover}
  22.  
  23. {.H2N} {.H3N} <--These cancel the line 2 & line 3 header ornaments above,
  24.               but only for pages after 1.  First spec for a given segment
  25.               is used in first page.  2nd spec for the segment won't be
  26.               used until 2nd page.  Subsequent specs in the header file
  27.               will wipe out previous ones for page 2 et seq.  Thus:
  28.  
  29. {.H1R Yoo hoo!} <--This changes the right side (only) of the first line but,
  30.                 again, only for pages after the first.  Unless you delete
  31.                 the NEXT command, however, you'll never see this one, be-
  32.                 cause:
  33.  
  34. {.H1R Page #}   <--This changes the right side of the 1st line again.  It
  35.                 won't do anything to the first page, but it will intercept
  36.                 "Yoo hoo!" and keep it off the later pages.
  37.  
  38. But I can't resist "Yoo hoo!", so let's put it in the page one footer with
  39. the command {.F2C Yoo hoo!}.  It will go into the center of the second
  40. footer line, which of course forces an extra blank line between it and the
  41. text. But, we mustn't overdo this familiarity, so let's use {.F2C} to keep
  42. it off subsequent pages.  Ah, but that'll also kill the extra blank line(s),
  43. so we'll put in {.F2C   } to make a blank segment instead of an empty one
  44. (can- celling the F2C} but not the F2C Yoo Hoo!}).  This will have a side
  45. effect. Use this for a header file and paginate a file that ends somewhere
  46. in the middle of the page:
  47.  
  48.    PAGINA filename XXX.PRN XXX.HDR
  49.  
  50. Then, examine the output file, XXX.PRN, you'll find that it has blank lines
  51. all the way down the second page to fill it out to that invisible footer.
  52.  
  53.      Note: From this point on, I'll put a blank right after the {. to
  54.            keep my examples inoperative.  To see what they do, delete
  55.            the blank.
  56.  
  57. Suppose you want to print on both sides of the page.  Start by running 
  58. Countpgs on your file to see what you have.  Say the file has a width of 75 
  59. characters, and a margin of 3.  That would print skimpily in 80 columns, but 
  60. it would look better in elite type that makes a 96-column line.  It's more 
  61. convenient to get rid of the 3 column margin (with Mangler).  Now we have 
  62. lines of 72 columns.  96 - 72 = 24, so we can afford, left margins of 14,
  63. slightly more than an inch.  Use the instruction {. HM14,72,96} to tell
  64. Pagina you want 14 columns of left margin (on odd pages, it'll be right
  65. margin on  even pages), your text is 72 columns wide, and the printer will
  66. fit 96 columns  in a line; then put {. HA} to tell Pagina to alternate
  67. headers left and right.  You'll get a file all set up with suitable headers
  68. for Prn2Both to divide up  into even and odd page files for printing.
  69.  
  70. Now suppose the file has a title page.  It shouldn't be counted in the num- 
  71. bering and it needs a blank page after it to make the 1st page of text come 
  72. out on the right side.  {. HBPA1} is an instruction to put one extra blank 
  73. page (just a FF) after page 1.  So the page you want numbered "1" now has
  74. TWO  pages in front of it.  {. HUP2} calls for 2 Unnumbered Pages at the
  75. start. 
  76.  
  77. If you'd like to make a more or less permanent HDR file instead of contin-
  78. ually editing it, you can use instructions that begin with  {. followed by U
  79. to make Pagina ask you to fill it in on the fly at run time.  You can give
  80. it a default and an explanatory label:
  81.  
  82. {. U "{. HM14/72/96} {. HA}"[alt pgs elite font for text 72 cols wide]}
  83.  
  84. When Pagina begins to run, you'll be asked to enter a User's String.  Pagina 
  85. will display the text in [square brackets] below the text entry line.  The 
  86. part in "double quotes" would appear as text already entered.  You can just 
  87. press <Enter> to accept that instruction or edit it to suit.  Anything that 
  88. can be entered in a header file can be entered in such a line.
  89.  
  90. If you merely want a little text to go into one or more header segments, IN 
  91. the segment, in the place you want the last-minute text to to, put .Us
  92. ("User  string").  It can have a "suggested default" and/or a [descriptive
  93. label].  You get to supply text for .Us instructions only once --that is,
  94. however many  segments you put .Us in, you'll be asked for text only once
  95. and that text will go in all the places you've put a .Us symbol.  There's
  96. no such limit on .U lines; you can have as many as you like.  (But don't
  97. overdo it.  You'll have to enter something for each of them every time you
  98. use that header file.)
  99.  
  100. Notice that in a header file everything NOT in braces is a comment.  You
  101.     can have things in {braces}, too so long as they don't start with the
  102.     .H symbol right after the opening brace.  You'll notice that I have to
  103.     pussyfoot in order to avoid actually putting a header instruction into
  104.     this paragraph by mistake.
  105.  
  106. Here's a stinker: {. HP22}  If you activate this instructions (delete the
  107.     space, this command will set Pagina laying out 22 lines per page.  HP
  108.     makes no distinction between "1st" and "subsequent" pages.  If you put
  109.     more than one HP command in a header file, only the last one will have
  110.     effect.
  111.  
  112. Finally: {. @FILETOP.TXT} would (if you delete the space) search the current
  113.     directory and then the whole DOS path for a file named FILETOP.TXT.  If
  114.     found, the entire text of FILETOP.TXT would be inserted into the header
  115.     after whatever { .H } items have been heretofore specified.
  116.